package com.ssn.strategy.book;

public class Book {
    int count;
    double price;
    Strategy strategy;

    public Book(int count, double price) {
        this.count = count;
        this.price = price;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
    public double finalPay(){
        return strategy.calculator(count,price);
    }
}
